<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:c="http://java.sun.com/jsp/jstl/core"
      xmlns:composite="http://java.sun.com/jsf/composite">
 <head>
  <title>panel</title>
 </head>
<body>
 
<composite:interface>
    <composite:attribute name="id" required="false"/>
    <composite:attribute name="style" required="false"/>
    <composite:attribute name="styleClass" required="false"/>
    <composite:attribute name="headerClass" required="false"/>
    <composite:attribute name="bodyClass" required="false"/>
</composite:interface>
 
<composite:implementation>
    <h:outputStylesheet library="org.richfaces.showcase" name="panel.ecss" />
  
 <div class="rich-panel #{cc.attrs.styleClass}" id="#{cc.attrs.id}"
   style="#{cc.attrs.style}"
   onclick="#{cc.attrs.onclick}" 
   ondblclick="#{cc.attrs.ondblclick}"
   onkeydown="#{cc.attrs.onkeydown}"
   onkeypress="#{cc.attrs.onkeypress}"
   onkeyup="#{cc.attrs.onkeyup}"
   onmousedown="#{cc.attrs.onmousedown}"
   onmousemove="#{cc.attrs.onmousemove}"
   onmouseout="#{cc.attrs.onmouseout}"
   onmouseover="#{cc.attrs.onmouseover}"
   onmouseup="#{cc.attrs.onmouseup}">

   <h:panelGroup rendered="#{not empty cc.facets.header}">
   <div class="rich-panel-header #{cc.attrs.headerClass}">
     <composite:renderFacet name="header"/>
   </div>      
   </h:panelGroup>   
  <div class="rich-panel-body #{cc.attrs.bodyClass}" > 
   <composite:insertChildren /> 
  </div>   
 
 </div> 
</composite:implementation>
</body>
</html>
